package com.aier.common.common;

import java.sql.Timestamp;
import java.util.Comparator;

import com.aier.admin_new.entity.Dynamic;

public class ListComparator implements Comparator<Dynamic> {
	
	@Override
	public int compare(Dynamic d1, Dynamic d2) {
		Timestamp t1 = d1.getCdate();
		Timestamp t2 = d2.getCdate();
		return t1.compareTo(t2);	
	}

}
